package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.Equipment;
import com.dwxt.cdms.vo.SelectEquipmentVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface EquipmentMapper extends Mapper<Equipment> {

    List<Equipment> pageEquipmentList(SelectEquipmentVo selectVo);

    Equipment selectEquipmentById(String id);

    int deleteEquipmentByIds(@Param("ids") String[] ids);

    int updateDistributionStatusToOne(String equipmentId);

    void updateDistributionStatusToZero(String equipmentId);

    Equipment selectEquipmentBySerialNumber(@Param("serialNumber") String serialNumber, @Param("id") String id);

    List<Equipment> selectEquipmentListByCustomerId(Integer customerId);
}